package com.qin.bean;

public class User {
    //spring 默认情况下spring会通过反射调用无参构造方法来实例化对象  如：
    private String name;
    private String passward;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassward() {
        return passward;
    }

    public void setPassward(String passward) {
        this.passward = passward;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", passward='" + passward + '\'' +
                ", age=" + age +
                '}';
    }
    public User(){
        System.out.println("此为无参构造方法");
    }

}
